<template>
  <div class="je-admin-micro-initpage">
    <MicroPage v-for="app in apps" :key="app.name" :app="app" :layout="layout" />
  </div>
</template>
<script>
  import { defineComponent } from 'vue';
  import MicroPage from './micro.vue';
  import { useAdminStore } from '@/stores/admin-store';
  import { MicroActiveType } from '@/data/enum/micro';
  export default defineComponent({
    name: 'AdminPageMicroInit',
    components: { MicroPage },
    setup() {
      const adminStore = useAdminStore();
      const apps = adminStore.getMicroConfig4Init();
      const layout = MicroActiveType.INIT;
      return { apps, layout };
    },
  });
</script>
<style>
  .je-admin-micro-initpage {
    width: 0;
    height: 0;
  }
</style>
